<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc 磁盘空间 添加
@author WeiXiaoJin
@since 2020-01-26 10:17:35
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">
								<form class="form-horizontal" id="addForm">
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">目录</label>
	<div class="col-md-9">
				<input class="form-control" id="dirName" type="text" name="dirName" placeholder="目录">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">剩余空间</label>
	<div class="col-md-9">
				<input class="form-control" id="dirFree" type="text" name="dirFree" placeholder="剩余空间">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">目录类型</label>
	<div class="col-md-9">
				<input class="form-control" id="sysTypeName" type="text" name="sysTypeName" placeholder="目录类型">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">空间大小</label>
	<div class="col-md-9">
				<input class="form-control" id="total" type="text" name="total" placeholder="空间大小">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">类型名称</label>
	<div class="col-md-9">
				<input class="form-control" id="typeName" type="text" name="typeName" placeholder="类型名称">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">使用比率</label>
	<div class="col-md-9">
				<input class="form-control" id="usage" type="text" name="usage" placeholder="使用比率">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">已使用</label>
	<div class="col-md-9">
				<input class="form-control" id="used" type="text" name="used" placeholder="已使用">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">所属状态</label>
	<div class="col-md-9">
				<input class="form-control" id="systemStatusId" type="text" name="systemStatusId" placeholder="所属状态">
			</div>
</div>
																			</form>
							</div>
						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var addForm = $("#addForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
dirName: {required:true}
,dirFree: {required:true}
,sysTypeName: {required:true}
,total: {required:true}
,typeName: {required:true}
,usage: {required:true}
,used: {required:true}
,systemStatusId: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("addForm");
			if(result){	
				var saveUrl = ctx+"base/logger/logSystemFiles/save" ;
				$.operate.save(saveUrl , addForm.serialize());
			}
	    }
	</script>

</body>
</html>


